package graph;

public class Rectangle extends Graph {
    public Rectangle() {
    }

    public Rectangle(int width, int height) {
        super(width, height);
    }

    // 面积
    public void getArea() {
        System.out.println("矩形面积：" + this.width * this.height);
    }

    // 周长
    public void primeter() {
        System.out.println("矩形周长：" + (this.width + this.height) * 2);
    }

}
